<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

function smarty_function_categories_style_dish ($params, $smarty) {

    $smarty->CI->load->model('dish/dish_model');
    $data = $smarty->CI->dish_model->get_categories_style_dish();
    if (!$data) {
        return '';
    }
    $smarty->assign($params['out'], $data);
}